﻿using QModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QServices.Services
{
	public class LsdService:QMainService
	{
		public Dictionary<string, int> GetSeasonalPatterns()
		{
			using var db=CreateDbContext();
			var lst=db.Set<DosingEquipment>().Select(x=>new { Key=x.Region,Value=x.SeasonalPattern }).ToList();
			var res=new Dictionary<string, int>();
			lst.ForEach(x=>res.Add(x.Key, x.Value));
			return res;
		}


	}
}
